package com.douyin.service;

import com.douyin.dto.FindPasswordDTO;
import com.douyin.dto.LoginDTO;
import com.douyin.dto.RegisterDTO;
import com.douyin.entity.Captcha;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.util.Map;

public interface LoginService {
    void getCaptcha(HttpServletResponse response, String uuId) throws IOException;

    boolean getCode(Captcha captcha);

    void checkCode(String email, Integer code);

    void register(RegisterDTO registerDTO);

    Map<String, Object> login(LoginDTO loginDTO);

    void findPassword(FindPasswordDTO findPasswordDTO);
}
